home *** CD-ROM | disk | FTP | other *** search
/ Magnum One / Magnum One (Mid-American Digital) (Disc Manufacturing).iso / d12 / jaz_clib.arc / JZDOSVER.C < prev    next >
Text File  |  1989-04-09  |  537b  |  22 lines

  1. /*
  2. ┌────────────────────────────────────────────────────────────────────────────┐
  3. │jzdosver.c                                     │
  4. │Return the dos version number.                          │
  5. │The major version will be in the low byte,                     │
  6. │the minor version will be int the high byte.                     │
  7. │                                         │
  8. │ (C) JazSoft Software by Jack A. Zucker (301) 794-5950              │
  9. └────────────────────────────────────────────────────────────────────────────┘
  10. */
  11.  
  12. jzdosver()
  13. {
  14.   TREG wreg;
  15.  
  16.   wreg.h.ah = 0x30;
  17.  
  18.   msdos(&wreg);
  19.  
  20.   return(wreg.x.ax);
  21. }
  22.